import useRequest from "@/api/useRequest";

export class storySceneController {


  static batchAddScene(data: any, storyId:string): Promise<any> {
    return useRequest({
      url: '/storyScene/batchAddStoryScene',
      method: 'post',
      data,
      params: {
        storyId
      }
    })
  }

  static addScene(data: any): Promise<any> {
    return useRequest({
      url: '/storyScene/addOrUpdateStoryScene',
      method: 'post',
      data
    })
  }

  static getSceneList(chapterId: string): Promise<any> {
    return useRequest({
      url: '/storyScene/getStoryScene?chapterId=' + chapterId,
      method: 'get'
    })
  }

  static deleteScene(sceneId: string): Promise<any> {
    return useRequest({
      url: '/storyScene/deleteStoryScene?id=' + sceneId,
      method: 'get'
    })
  }

  static sceneExtract(data: any): Promise<any> {
    return useRequest({
      url: "/storyScene/extractScene",
      method: "post",
      data
    })
  }


}
